package com.socialcoco.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 赵志浩
 * @since 2022-03-17 09:16:50
 */
@Data
@TableName("users")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

      @TableId(value = "uid", type = IdType.AUTO)
    private Integer uid;

    @TableField("username")
    private String username;

    @TableField("weiboid")
    private String weiboid;

    @TableField("password")
    private String password;

    @TableField("salt")
    private String salt;

    @TableField("headimgae")
    private String headimgae;

    @TableField("sex")
    private Integer sex;

    @TableField("desrption")
    private String desrption;

    @TableField("age")
    private Integer age;

    @TableField("email")
    private String email;

    @TableField("accessToken")
    private String access_token;

    @TableField("birthday")
    private Date birthday;


    @TableField("tel")
    private String tel;
    @TableField("active")
    private Integer active;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;


}
